From: | Dennis Griffin |
Date: | 4 Sep 2001 at 22:38:02 |
Subject: | Harddrive access |
This has been bugging me...hopefully someone can help. Here's a small
program:
/* filesplitter */
open('infile','ram:in','R')
open('odd','ram:odd','W')
open('even','ram:even','W')
do until eof('infile')
writeln('odd',readln('infile'))
writeln('even',readln('infile'))
end
This program works fine. It takes a file named "in" from the RAM Disk,
writes all the even numbered lines to a file called "even" and all the odd
numbered lines to a file called "odd". Both "even" and "odd" are also in
the RAM disk. Here's the question...Why does the harddrive light flash
continually while the program is running?
I assume it's reading the code to perform the "readln" and "writeln"
commands. (I ran it from the RAM Disk with the hard drive locked and it
worked so it isn't writing to the HD.) Is there a way of loading these
commands into ram so they don't access the drive? Something like the
AmigaDOS "RESIDENT" command?
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Secure your servers with 128-bit SSL encryption! Grab your copy of VeriSign's FREE Guide: "Securing Your Web Site for Business." Get it Now!
http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/saFolB/TM
---------------------------------------------------------------------~->
ARexx mailing list - No flames, no overquoting, no crossposting.
Unsub: Blank mail to mailto:arexx-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/